const joi = require('joi')


const username = joi.string().alphanum().min(1).max(10).required()
const password = joi.string().pattern(/^[\S]{6, 12}$/).required()

// 定义验证注册和登录表单数据的验证对象
exports.reg_login_schema = {
    body: {
        username,
        password
    }
}
